package com.bookshop.entity;

import java.io.Serializable;
import java.util.Date;
/**
 * 用户实体
 * @author yannis
 *
 */
public class User implements  Serializable {
	
	private static final long serialVersionUID = 3885876351518352423L;
	
	private Integer id;//主键编号
	private String loginId;//账号
	private String loginPwd;//密码
	private String name;//姓名
	private String address;//地址
	private String phone;//电话
	private String mail;//邮箱
	private Date birthday;//出生日期
	
	private String registerIp;//注册IP
	private Date registerTime;//注册时间
	
	private UserRole userRole;//用户角色
	private UserState userState;//用户状态
	
	
  
	public User() {
		super();
	}
 
	public User(String loginId, String loginPwd, String name, String address,
			String phone, String mail, Date birthday) {
		super();
		this.loginId = loginId;
		this.loginPwd = loginPwd;
		this.name = name;
		this.address = address;
		this.phone = phone;
		this.mail = mail;
		this.birthday = birthday;
	}



	public UserRole getUserRole() {
		return userRole;
	}
	public void setUserRole(UserRole userRole) {
		this.userRole = userRole;
	}
	public UserState getUserState() {
		return userState;
	}
	public void setUserState(UserState userState) {
		this.userState = userState;
	}
	public Integer getId() {
		return id;
	}
	public String getLoginId() {
		return loginId;
	}
	public String getLoginPwd() {
		return loginPwd;
	}
	public String getName() {
		return name;
	}
	public String getAddress() {
		return address;
	}
	public String getPhone() {
		return phone;
	}
	public String getMail() {
		return mail;
	}
	public Date getBirthday() {
		return birthday;
	}
	 
	public String getRegisterIp() {
		return registerIp;
	}
	public Date getRegisterTime() {
		return registerTime;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}
	public void setLoginPwd(String loginPwd) {
		this.loginPwd = loginPwd;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public void setMail(String mail) {
		this.mail = mail;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	 
	public void setRegisterIp(String registerIp) {
		this.registerIp = registerIp;
	}
	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}

	
	 

}
